package com.mybatisflex.example.pojo.domain.taos;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * 气温 实体类。
 *
 * @author tanyunpeng
 * @since 2024-02-28
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "temperature")
public class Temperature implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 上报时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp ts;
    /**
     * 温度
     */
    private Float temperature;
    /**
     * 行政区名称
     */
    private String districtName;
    /**
     * 行政区编码
     */
    private Integer districtCode;
}
